package com.Logistics.truck;

import com.Logistics.dto.truck.TransportTripsTruckDriverDto;
import com.Logistics.dto.truck.Transport_trips_truck_driverDto;
import com.Logistics.entity.truck.Transport_trips_truck_driverBean;
import com.Logistics.vo.truck.Transport_trips_truck_driverVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 车次与车辆和司机关联表的feign调用接口
 */
@FeignClient(value = "pd-base", path = "transport_trips_truck_driver")
public interface Transport_trips_truck_driverFeign {

    @PostMapping("/puttransport_trips_truck_driverbyid")
    public Transport_trips_truck_driverVo puttransport_trips_truck_driverbyid(@RequestParam("dto") Transport_trips_truck_driverDto dto);

    @PostMapping("/getTransportTripsTruckDriverById")
    public List<Transport_trips_truck_driverBean> getTransportTripsTruckDriverById(@RequestBody TransportTripsTruckDriverDto dto);
}
